<?php

include_once($_SERVER["DOCUMENT_ROOT"]."/home/header.php");

$arr = sele($config,'zuopin');
$tu = sele($config,'tupian');
?>
    
    <div id="templatemo_right_column">
    
    	<div id="featured_project">
            <div id="slider">
                <ul id="sliderContent">

                    <?php
                        foreach ($tu as $k => $v) {
                            echo'<li class="sliderImage">
                        <a href=""><img src="'.$v['pic'].'" alt="1" /></a>
                        <span class="top"><strong>'.$v['title'].'</strong></span>
                    </li>';
                        }


                    ?>

                   <!-- <li class="sliderImage">
                        <a href=""><img src="images/slider/2.jpg" alt="2" /></a>
                        <span class="bottom"><strong>项目 2</strong><br />图片22</span>
                    </li>
                    <li class="sliderImage">
                        <img src="images/slider/3.jpg" alt="3" />
                        <span class="left"><strong>项目 3</strong><br />图片33</span>
                    </li>
                    <li class="sliderImage">
                        <img src="images/slider/4.jpg" alt="4" />
                        <span class="right"><strong>项目 4</strong><br />图片44</span>
                    </li>-->
                    <li class="clear sliderImage"></li>
                </ul>
            </div>
        </div>
        
        <div id="templatemo_main">
        
            

            <?php
                foreach ($arr as $k => $v) {
                   echo"<div class='post_section'><span class='comment'>
                    <a href='blog_post.php'>";
                   echo  $v['dianji'];
                   echo" </a></span>";

                   echo '<h2><a href="yuedu.php?id='.$v['id'].'">'.$v['title'].'</a></h2>';
                   
                   echo date('Y-m-d H:i:s',$v['ctime'])."<strong>作者:</strong>{$v['author']} | <strong>类别:</strong> <a href='#'>设计</a>
                
                    <a href='yuedu.php?id=".$v['id']."'>
                    <img src='{$v['pic']}' style='width:420px; height:150px;'/></a>
                
                    <p>{$v['content']}</p>
                    <a href='yuedu.php?id=".$v['id']."'>继续阅读...</a>
                    </div>";
                }

            ?>
            <center>
        <a href="index.php?p=1">首页</a>
        <a href="index.php?p=<?php echo $_SESSION['shang'] ?>">上一页</a>
        <a href="index.php?p=<?php echo $_SESSION['xia'] ?>">下一页</a>
        <a href="index.php?p=<?php echo $_SESSION['fen'] ?>">尾页</a>
        总共<?php echo $_SESSION['fen']; ?>页  &nbsp;&nbsp;当前第<?php echo $_SESSION['p'];?>页</center>

		</div>

    
  <div class="cleaner"></div>

  
  </div> 
    <!-- end of templatemo_main -->
<?php
include("footer.php");
 
?>